package com.mall.common.annotation;

import com.mall.common.enums.DataSourceType;
import java.lang.annotation.*;

/**
 * 自定义多数据源切换注解
 * Created by zhonglin on 2020/4/8.
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource {

  /**
   * 切换数据源名称
   */
  public DataSourceType value() default DataSourceType.MASTER;

}
